package com.tth.learn.addproperties.java1;

import java.io.Serializable;

/**
 * @Author tth
 * @Date 2022/12/29 16:32
 */
public class Creature<T> implements Serializable {

    private static final long serialVersionUID = 7876035852235941085L;

    private char gender;
    public double weight;

    private void breath() {
        System.out.println("生物呼吸");
    }

    private void eat() {
        System.out.println("生物呼吸");
    }

    public Creature() {
    }

    public Creature(char gender, double weight) {
        this.gender = gender;
        this.weight = weight;
    }
}
